<php>global $configinfo;</php>
<php>foreach($modulemenu as $key => $menu){</php>
<li>
    <a href="#" class="dropdown-toggle">
        <i class="fa fa-{$configinfo['menuico'][$key]} normal"></i>
        <span class="menu-text normal">{$menu.name}</span>
        <b class="arrow fa fa-angle-right normal"></b>
        <i class="fa fa-reply back"></i>
        <span class="menu-text back">返回</span>
    </a>
    <ul class="submenu">
        <php>foreach($menu['menu2'] as $menu2){</php>
                <li>
                    <php>if($menu2['menu3']){</php>
                        <a href="javascript:;" class="dropdown-toggle">
                            <i class="fa fa-caret-right"></i>
                            <span class="menu-text">{$menu2.name}</span>
                        </a>
                        <ul class="submenu">
                            <php>foreach($menu2['menu3'] as $menu3){</php>
							<php>
								$menu_url3 = $menu3['menu_url'] ? $menu3['menu_url'] : "/portal/admin_article/index/category/".$menu3['id'].".html";
							</php>
                            <li>
                                
                                <a href="javascript:openapp('{$menu_url3}','{$menu3.id}moduleportal','{$menu3.name}',true);">
                                    &nbsp;<i class="fa fa-angle-double-right"></i>
                                    <span class="menu-text">{$menu3.name}</span>
                                </a>
                            </li>
                            <php>}</php>
                        </ul> 
                    <php>}else{</php>
						<php>
							$menu_url2 = $menu2['menu_url'] ? $menu2['menu_url'] : "/portal/admin_article/index/category/".$menu2['id'].".html";
						</php>
                        <a href="javascript:openapp('{$menu_url2}','{$menu2.id}moduleportal','{$menu2.name}',true);">
                            <i class="fa fa-caret-right"></i>
                            <span class="menu-text">{$menu2.name}</span>
                        </a>
                    <php>}</php>
                </li>
        <php>}</php>
        <php>if(($menu['id'] != 11 && $menu['index_num'] != '自定义扩展') || $configinfo['adminid'] == 1){</php>
            <li>
                <a href="javascript:openapp('/portal/admin_category/index/category/{$menu.id}.html','{$menu.id}moduleportal','分类管理',true);">
                    <i class="fa fa-caret-right"></i>
                    <span class="menu-text">分类管理</span>
                </a> 
            </li>
        <php>}</php>
    </ul>
</li>
<php>}</php>